package com.market.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author xd
 * @since 2024-03-30
 */
public class County implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 县名称
     */
    private String countyName;

    /**
     * 市区ID
     */
    private Integer cityId;

    /**
     * 暂时想法：以1为准，细分每个省市的不同地区
     */
    private BigDecimal level;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }
    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }
    public BigDecimal getLevel() {
        return level;
    }

    public void setLevel(BigDecimal level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "County{" +
            "id=" + id +
            ", countyName=" + countyName +
            ", cityId=" + cityId +
            ", level=" + level +
        "}";
    }
}
